<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>MyISERN 2.0 - Add Collaboration</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<title>MyIsern 2.0</title>
<link href="default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="ajax/prototype.js"></script>
<script type="text/javascript" src="ajax/common.js"></script>
<script type="text/javascript" src="ajax/actb.js"></script>
</head>

<body>

<div id="logo">
	<h1>Myisern</h1>
</div>

<%@ include file="menu.jsp" %>

<div id="page">
  <div id="welcome" class="post">
    <div class="title">
      <h2 align="center"><span class="style8">Welcome to MyIsern!</span></h2>
    </div>
    <div class="story">
      <h1 class="title" align="center">Add Collaboration</h1>
      <div class="entry">
        <center>
          <table align="center">
            <tbody>
              <tr>
              <c:if test='${actionBean.added == true}'>
                <td colspan="2" align="center"><h3>The following Collaboration has been added.</h3></td>
              </c:if>
              </tr>
              <tr>
                <td colspan="2" align="center"><strong><font color="white">${actionBean.errorMessage}</font></strong></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
          <stripes:form id="CollaborationForm" action="/Collaboration.action" focus="">
              <tr>
                <td></td>
                <td><stripes:hidden name="organizationNamesList" id="organizationNamesList"/></td>
              </tr>
              <tr>
                 <td><strong>Name&nbsp;&nbsp;&nbsp;</strong></td>
                 <td><stripes:text name="name" size="36"/></td>
              </tr>
              <tr>
                 <td><strong>Collaborating-Organizations&nbsp;&nbsp;&nbsp;</strong></td>
                 <td><stripes:textarea name="collaboratingOrganizations" id="collaboratingOrganizations" cols="27"/></td>
                 <script language="JavaScript" type="text/javascript">
                   var namesList = document.getElementById('organizationNamesList').value;
                   var names = namesList.split("|");
                   new actb(document.getElementById('collaboratingOrganizations'),names);
                 </script>
              </tr>
              <tr>
                <td><strong>Collaboration-Types&nbsp;&nbsp;&nbsp;</strong></td>
                <td><stripes:textarea name="collaborationTypes" cols="27"/></td>
              <tr>
              <tr>
                <td><strong>Years&nbsp;&nbsp;&nbsp;</strong></td>
                <td><stripes:textarea name="years" cols="27"/></td>
              </tr>
              <tr>
                <td><strong>Outcome-Types&nbsp;&nbsp;&nbsp;</strong></td>
                <td><stripes:textarea name="outcomeTypes" cols="27"/></td>
              </tr>
              <tr>
                <td colspan="2" align="left"><strong>Description&nbsp;&nbsp;&nbsp;</strong></td>
              </tr>
              <tr>
                <td colspan="2"><stripes:textarea name="description" cols="54" rows="8"/></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
            <c:if test='${actionBean.added != true}'>
              <tr>
                <td colspan="2" align="center"><font color="white"><strong>*Separate multiple items by commas.<strong></font></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
            </c:if>
              <tr>
                <td></td>
            <c:choose>
              <c:when test='${actionBean.added == true}'>
                <td align="center">
                  <stripes:submit value="Edit" name="edit"/>
                  &nbsp;&nbsp;&nbsp;
                  <stripes:submit value="Remove" name="remove"/>
                </td>
              </c:when>
              <c:otherwise>
                <td align="right">
                  <stripes:submit value="Add" name="add"/>
                  &nbsp;&nbsp;&nbsp;
                  <stripes:submit value="Reset" name="reset"/>
                  &nbsp;&nbsp;&nbsp;
                  <stripes:submit value="Cancel" name="cancel"/>
                </td>
              </c:otherwise>
            </c:choose>
              </tr>
          </stripes:form>
            </tbody>
          </table>
        </center>
      </div>
    </div>
  </div>
  <div id="extra" style="clear: both;">&nbsp;</div>
</div>


<!-- end #page -->

<div id="footer">
	<p id="legal"><span class="style6">Copyright &copy; 2007 Eclipse. All Rights Reserved.</span></p>
</div>

</body>
</html>
